﻿@using BLL.Security
@using BLL.Services.Categories
@using Web.Infrastructure
<!DOCTYPE html>
<html>
<head>
    <title>Form Sample</title>
       @Url.WriteCss("~/css/a.css",
       "~/css/base.css",
       "~/css/jquery.ui.css",
       "~/css/alertify.core.css",
       "~/css/alertify.default.css",
       "~/css/layout.css",
       "~/css/form.css",
       "~/css/grid.css",
       "~/css/fileuploader.css",
       "~/css/menu.css",
       "~/css/home.css",
       "~/css/rating.css",
       "~/css/books.css",
       "~/css/profile.css",
       "~/css/user-listing.css")

    <!--[if lt IE 9]>
            <script language="javascript" src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
</head>
<body>
<header>
    <a href="#"><img src="@Url.Content("~/i/logo.gif")"/></a>
    @{
        var user = DependencyResolver.Current.GetService<IEnvironmentContext>().User;
    }
    @if (user==null)
    {
        <span id="welcom">Привет Гость! <a href="@Url.Action(MVC.Account.Register())" title="Зарегистрироваться" >Зарегистрируйся</a> или <a title="Войти" href="@Url.Action(MVC.Account.LogOn())" >Войти</a> в бибилотеку.</span>
    }
    else
    {
        <span id="welcom">Привет @user.Login <a href="@Url.Action(MVC.Account.Edit())" title="Профиль" >Профиль</a> или <a title="Выйти" href="@Url.Action(MVC.Account.LogOff())" >Выйти</a>.</span>
    }
</header>
    <div id="content">
            @RenderBody()
    </div>
    <footer>
        <div class="left-footer">
            <img src="@Url.Content("~/i/footer_logo.gif")"/>
        </div>
    </footer>
    <script type="text/javascript" src="@Url.Action(MVC.Shared.SiteMap())"></script>
    @Url.WriteJs("~/js/a.js",
    "~/js/jquery.js",
    "~/js/jquery.signalR.js",
    "~/js/underscore.js",
    "~/js/backbone.js",
    "~/js/jquery.ui.js",
    "~/js/jquery.ui.widgets.js",
     "~/js/jquery.textchange.js",
    "~/js/url.js",
    "~/js/message.js",
    "~/js/customCursor.js",
    "~/js/jquery.iframe-transport.js",
    "~/js/jquery.fileupload.js",
     "~/js/ui.widget.autocomplete.js",
    "~/js/ui.widget.fileuploader.js",
    "~/js/ui.widget.imageupload.js",
    "~/js/alertify.js",
    "~/js/CustomView.js",
    "~/js/popUpView.js",
    "~/js/ScrollPagingView.js",

        "~/js/Layouts/Social/socialFriendsModel.js",
        "~/js/Layouts/Social/socialFriendsView.js",
        "~/js/Layouts/Social/socialProfileModel.js",
        "~/js/Layouts/Social/socialProfileView.js",
        "~/js/Layouts/Social/socialFriendsRequestModel.js",
        "~/js/Layouts/Social/socialFriendsRequestView.js",
        "~/js/Layouts/Social/socialLayoutModel.js",
        "~/js/Layouts/Social/socialLayoutView.js",
    
         "~/js/Layouts/Library/alphabetView.js",
         "~/js/Layouts/Library/categoryNavigationModel.js",
         "~/js/Layouts/Library/categoryNavigationView.js",
         "~/js/Layouts/Library/libraryLayoutView.js",

         "~/js/Authors/authorsModel.js",
         "~/js/Authors/authorsView.js",
         "~/js/Authors/authorsBooksModel.js",
         "~/js/Authors/authorsBooksView.js",
         "~/js/Authors/authorsRoutes.js",
         
          "~/js/Books/booksModel.js",
          "~/js/Books/booksView.js",
          "~/js/Books/responsesModel.js",
          "~/js/Books/responsesView.js",
          "~/js/Books/booksRoutes.js",
          
          "~/js/Ratings/ratingModel.js",
          "~/js/Ratings/ratingView.js",
            
          "~/js/Categories/categoriesModel.js",
          "~/js/Categories/categoriesView.js",
          "~/js/Categories/categoriesRoutes.js",
          
          "~/js/Home/homeModel.js",
          "~/js/Home/homeView.js",
          "~/js/Home/contentRoutes.js",
          
          "~/js/Account/logOnModel.js",
          "~/js/Account/logOnView.js",
          "~/js/Account/welcomModel.js",
          "~/js/Account/welcomView.js",
          "~/js/Account/accountRoutes.js",
          "~/js/Account/EditProfileModel.js",
          "~/js/Account/EditProfileView.js",
          
          
          "~/js/Profile/showProfileModel.js",
          "~/js/Profile/showProfileView.js",
          "~/js/Profile/profileRatedBooksModel.js",
          "~/js/Profile/profileRatedBooksView.js",
          "~/js/Profile/sendMessageModel.js",
          "~/js/Profile/sendMessageView.js",
          "~/js/Profile/profileRoutes.js",
          
          "~/js/Messages/MessagesRoutes.js",
          "~/js/Messages/UserListingModel.js",
          "~/js/Messages/MessagesView.js",
          "~/js/Messages/MyMessageListingModel.js",
          "~/js/Messages/MyMessageListingView.js",
          

          "~/js/Friends/FriendsRoutes.js",
          "~/js/Friends/FriendsListingModel.js",
          "~/js/Friends/FriendsListingView.js",
          "~/js/Friends/FriendsIsAcceptedListingModel.js",
          "~/js/Friends/FriendsIsAcceptedListingView.js",

        "~/js/routes.js",
        "~/js/jquery.ui.validator.js"
    )
        <script type="text/javascript" src="@Url.Content("~/signalR/hubs")"></script>
</body>
</html>
